Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check call to getrf! #50134

Merged
merged 2 commits into from
Jun 12, 2023
Merged

Conversation

ChrisRackauckas
Copy link
Member

lu!(A; check=false) is supposed to disable the checking and leave it to the user:

When check = true, an error is thrown if the decomposition fails. When check = false, responsibility for checking the decomposition's validity (via issuccess) lies with the user.

However, this is not quite true since lu! calls getrf! which internally does a check for chkfinite which does throw an error. This updates the getrf! function to have a check argument which is then used by lu! to fully disable the error throwing checks.

`lu!(A; check=false)` is supposed to disable the checking and leave it to the user:

> When check = true, an error is thrown if the decomposition fails. When check = false, responsibility for checking the decomposition's validity (via issuccess) lies with the user.

However, this is not quite true since `lu!` calls `getrf!` which internally does a check for `chkfinite` which does throw an error. This updates the `getrf!` function to have a `check` argument which is then used by `lu!` to fully disable the error throwing checks.
@ViralBShah ViralBShah added the linear algebra Linear algebra label Jun 12, 2023
@ViralBShah ViralBShah merged commit d69b1a2 into JuliaLang:master Jun 12, 2023
@ChrisRackauckas ChrisRackauckas deleted the patch-13 branch June 12, 2023 17:37
@staticfloat staticfloat added the backport 1.9 Change should be backported to release-1.9 label Jun 12, 2023
KristofferC pushed a commit that referenced this pull request Jun 26, 2023
* Add check call to getrf!

`lu!(A; check=false)` is supposed to disable the checking and leave it to the user:

> When check = true, an error is thrown if the decomposition fails. When check = false, responsibility for checking the decomposition's validity (via issuccess) lies with the user.

However, this is not quite true since `lu!` calls `getrf!` which internally does a check for `chkfinite` which does throw an error. This updates the `getrf!` function to have a `check` argument which is then used by `lu!` to fully disable the error throwing checks.

* Update lapack.jl

(cherry picked from commit d69b1a2)
@KristofferC KristofferC mentioned this pull request Jun 26, 2023
36 tasks
@KristofferC KristofferC removed the backport 1.9 Change should be backported to release-1.9 label Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear algebra Linear algebra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants